
export const tableOption = {
  height: 'auto',
  calcHeight: 'auto',
  searchShow: true,
  searchMenuSpan: 6,
  stripe: true,
  headerAlign: 'center',
  align: 'center',
  tip: false,
  tree: true,
  border: true,
  index: true,
  indexLabel: '序号',
  selection: true,
  viewBtn:true,
  column: [{
    label: '角色名称',
    prop: 'roleName',
    span: 24,
    search: true,
    rules: [{
      required: true,
      message: '角色名称不能为空',
      trigger: 'blur'
    },
    {
      min: 3,
      max: 20,
      message: '长度在 3 到 20 个字符',
      trigger: 'blur'
    }]
  },
    {
      width: 150,
      label: '租户',
      prop: 'tenantId',
      type: "select",
      dicUrl: "/admin/tenant/list",
      props: {
        label: "name",
        value: "id"
      },
      span: 24,
      rules: [{
        required: true,
        message: '租户不能为空',
        trigger: 'blur'
      }
      ]
    },
    {
    width: 120,
    label: '角色标识',
    prop: 'roleCode',
    span: 24,
    editDisabled: true,
    rules: [{
      required: true,
      message: '角色标识不能为空',
      trigger: 'blur'
    },
      {
        min: 3,
        max: 20,
        message: '长度在 3 到 20 个字符',
        trigger: 'blur'
      }
    ]
  },
    {
    width: 150,
    label: '角色描述',
    prop: 'roleDesc',
    overHidden: true,
    search: true,
    span: 24
  }, {
    label: '创建时间',
    prop: 'createTime',
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    editDisplay: false,
    addDisplay: false,
    span: 24
  }]
}
